class AppConfig < ActiveRecord::Base
  attr_accessible :key, :value


  def self.get_taobao_keys
    app_key = self.where('`key` = "taobao_app_key"').first
    secret_key = self.where('`key` = "taobao_secret_key"').first
    {:app_key => app_key.value, :secret_key => secret_key.value}
  end
end
